package com.ruoyi.app.mapper;

import com.ruoyi.app.domain.ArticleInfo;
import com.ruoyi.app.domain.Collect;
import com.ruoyi.app.domain.CollectExample;
import com.ruoyi.app.domain.TripInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectMapper {
    int countByExample(CollectExample example);

    int deleteByExample(CollectExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Collect record);

    int insertSelective(Collect record);

    List<Collect> selectByExample(CollectExample example);

    Collect selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByExample(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByPrimaryKeySelective(Collect record);

    int updateByPrimaryKey(Collect record);

    List<ArticleInfo> selectArticleList(@Param("cancelIds") List<Long> cancelIds, Long userId);

    List<TripInfo> selectPayedList(@Param("cancelIds") List<Long> cancelIds, Long userId);
}